package com.xhs.hawaii.purchase.mapper;

import com.xhs.hawaii.purchase.model.PurchaseOrderSku;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author tangchuang
 * @version 1.0
 * @since 2018/1/26
 */
public interface PurchaseOrderSkuMapper {

    void insert(PurchaseOrderSku purchaseOrderSku);

    PurchaseOrderSku getByPurchaseNoSkuCode(@Param(value = "purchaseOrderNo") String purchaseOrderNo,@Param(value = "skuCode") String skuCode);

    List<PurchaseOrderSku> getByPurchaseNo(String purchaseNo);

    int update(PurchaseOrderSku purchaseOrderSku);

    List<PurchaseOrderSku> getByPurchaseOrderId(Long purchaseOrderId);
}
